package com.dsr.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * (Section)实体类
 *
 * @author dsr
 * @since 2020-08-16 02:18:36
 */
@Getter
@Setter
@ApiModel("(Section)实体类")
public class Section implements Serializable {
    private static final long serialVersionUID = 458174843740233790L;
    @Id
    private String id;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date createDate;

    private Integer del;

    private String name;

    private String parentId;

    private Boolean flag;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date updateDate;
}
